package com.pth.utils;

public class KaoshengUtils {

	public static int getroomid(int num){
		
		int roomid=0;
	
		if(num>9){
			
			if(num%9==0){
				
				roomid=9;
				
			}else
				
			roomid=num%9;
		}else{
			
			roomid=num;
		}
		
		return roomid;
	}
	
	
	public static int getpici(int num){
		
		int pici=0;
		if(num%9==0){
			pici=num/9;
		}else{
			
			pici=num/9+1;
		}
		
		return pici;
	}
	
}
